from rest_framework import serializers

from user_info.models import UserInfo, Information


class UserInfoSerializer(serializers.ModelSerializer):
    password = serializers.CharField(write_only=True, required=False)

    class Meta:
        model = UserInfo
        fields = '__all__'


class InformationSerializer(serializers.ModelSerializer):

    class Meta:
        model = Information
        fields = '__all__'
